package cn.cqnu.global;


/**
 * 系统返回枚举
 *
 * @author Wei
 * @date 2023/12/30
 */
public enum SystemReturnEnum {
    MATCH_EXISTED(608,"该比赛已经存在"),
    FILE_TYPE_ERR(607, "图片类型有误"),
    USER_TYPE_ERR(606, "您为学生用户，无权访问管理数据"),
    NEED_LOGIN(605, "需要登录后才能访问！"),
    LOGIN_INFO_WRONG(604, "登录信息错误，请检查后重试"),
    REQUEST_PARAMS_INCOMPLETE(603, "请求参数不完整，请检查"),
    ID_EXIST(602, "学号重复，请检查！"),
    CAPTCHA_ERR(601, "验证码错误"),
    /**
     * 操作成功
     */
    OK(200, "操作成功");

    private Integer code;

    private String message;

    SystemReturnEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return this.message;
    }
}
